using System.Collections.Generic;
using System.Diagnostics;

namespace wMobinium.core.test
{
    [NUnit.Framework.TestFixture]
    public class TestSuiteBuilderTest
    {
        [NUnit.Framework.Test]
        public void EnsureBuildWorks()
        {
            TestPackage testPackage = new TestPackageTest().CreateTestPackage();

            TestSuiteBuilder testSuiteBuilder = new TestSuiteBuilder();
            foreach (TestSuite testSuite in testSuiteBuilder.Build(testPackage))
            {
                Trace.WriteLine("------------------------------------------------\n");
                Trace.WriteLine(testSuite.ToString());
                Trace.WriteLine("------------------------------------------------\n");
                Trace.WriteLine("\n");
            }
        }

        public List<TestSuite> CreateTestSuite()
        {
            TestPackage testPackage = new TestPackageTest().CreateTestPackage();
            TestSuiteBuilder testSuiteBuilder = new TestSuiteBuilder();
            return testSuiteBuilder.Build(testPackage);
        }
    }
}